Micron Document




Cdnjs
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
top
cdnjs is a free and open-source software (FOSS) content delivery network (CDN) hosted by Cloudflare.cite-ref-libs-3-0[3]cite-ref-cf-sponsors-4-0[4] As of May 2021, it serves 4,013 JavaScript and CSS libraries, which are stored publicly on GitHub.cite-ref-os-com-5-0[5]cite-ref-repo-6-0[6]cite-ref-huff-post-7-0[7] It is included in millions of websites, or 12.4% of the websites on the Internet, making it the second most popular CDN for JavaScript.cite-ref-w3techs-8-0[8]cite-ref-mynavi-9-0[9]cite-ref-beluga-10-0[10]

Contents


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

History

In January 2011, Ryan Kirkman and Thomas Davis created the service,cite-ref-original-site-11-0[11] launching it on GitHub on February 25, 2011.cite-ref-cf-art-1-12-0[12]cite-ref-cat5-tv-13-0[13]cite-ref-the-changelog-14-0[14] It initially served content through Amazon CloudFront.cite-ref-cf-art-1-12-1[12]cite-ref-treehouse-15-0[15] On June 15, 2011,cite-ref-cf-tweet-16-0[16] cdnjs partnered with Cloudflare, who provided the CDN and subdomain cdnjs.cloudflare.com for the project.cite-ref-cf-art-1-12-2[12]cite-ref-cat5-tv-13-1[13]cite-ref-the-changelog-14-1[14]cite-ref-techcrunch-17-0[17]

On November 1, 2019, the founders turned over control of cdnjs to Cloudflare, citing "technical and commercial reasons."cite-ref-hn-cdnjs-activity-18-0[18] According to the community maintainers, the project was difficult to manage because of limited access to the GitHub repository, inactive founders, and a small budget.cite-ref-hn-cdnjs-activity-18-1[18]cite-ref-gh-cdnjs-activity-19-0[19]cite-ref-cf-art-3-20-0[20] It is estimated the annual budget at the time was approximately $50/yr.cite-ref-hn-cdnjs-activity-18-2[18]cite-ref-oc-cdnjs-activity-21-0[21]

Operation

The service is maintained by the community and Cloudflare.cite-ref-cf-sponsors-4-1[4] As of May 2021, there have been 1,443 contributors to the main GitHub repository, and 88 contributors to the newer package configuration GitHub repository.cite-ref-repo-6-1[6]cite-ref-repo-packages-22-0[22]

It is also sponsored by DigitalOcean, Algolia, Heroku, Atlassian, Sentry, and Lean20.cite-ref-do-os-23-0[23]cite-ref-collectiveray-24-0[24]cite-ref-about-25-0[25]

There is a public JSON API for developers to query cdnjs library metadata.cite-ref-programmableweb-26-0[26]cite-ref-api-27-0[27]

Resources on cdnjs can be loaded using a number of connection protocols – HTTP/2, HTTP, HTTPS or SPDY.cite-ref-os-com-5-1[5]cite-ref-about-25-1[25]cite-ref-cf-art-2-28-0[28]

The cdnjs.cloudflare.com domain is part of the HSTS preload list.cite-ref-29[29]

There exist websites that host clones of cdnjs libraries on their own servers:

• Wikimedia Tool Labs
• ByteDance

References

cite-note-gh-api-11. "cdnjs/cdnjs GitHub API". GitHub. Retrieved 8 July 2019.
cite-note-license-22. "cdnjs/LICENSE at master · cdnjs/cdnjs". GitHub. Retrieved 17 April 2019.
cite-note-libs-33. "libraries - cdnjs.com - The best FOSS CDN for web related libraries to speed up your websites!". Retrieved 17 April 2019.
cite-note-cf-sponsors-44. "Sponsorships". Cloudflare. Retrieved September 3, 2020.
cite-note-os-com-55. "Top 4 CDN services for hosting open source libraries | opensource.com". opensource.com. Retrieved 18 April 2019.
cite-note-repo-66. "cdnjs/cdnjs: 🤖 CDN assets - The #1 free and open source CDN built to make life easier for developers". GitHub. Retrieved 13 May 2021.
cite-note-huff-post-77. citerefivanovs2014Ivanovs, Alex (April 3, 2014). "Faster Content Delivery Solutions for Web Developers". The Huffington Post. Retrieved September 3, 2020.
cite-note-w3techs-88. "Usage Statistics and Market Share of JavaScript Content Delivery Networks for Websites". W3Techs. Retrieved 13 May 2021.
cite-note-mynavi-99. citerefgoto2018Goto, Daichi (November 1, 2018). "JavaScript CDNのCDNJSが成長中、シェア8%超え". Mynavi.
cite-note-beluga-1010. "ULTIMATE GUIDE TO CDNJS- WHAT IT DOES FOR YOUR WEBSITE". BelugaCDN. July 27, 2020. Retrieved September 3, 2020.
cite-note-original-site-1111. "cdnjs.com: the missing cdn". cdnjs.com. Archived from the original on January 25, 2011. Retrieved September 3, 2020.
cite-note-cf-art-1-1212. "CDNJS: Community Moderated Javascript Libraries + CloudFlare". Cloudflare. 16 June 2011. Retrieved 18 April 2019.
cite-note-cat5-tv-1313. "345 - Behind CDNJS - #Cat5TV Category5TV". May 3, 2014. Retrieved September 3, 2020.
cite-note-the-changelog-1414. "63: CDNJS with Thomas Davis and Ryan Kirkman". The Changelog. June 21, 2011. Retrieved September 3, 2020.
cite-note-treehouse-1515. "cdn js | Treehouse Blog". Retrieved 18 April 2019.
cite-note-cf-tweet-1616. citerefcloudflare2011@Cloudflare (16 June 2011). "CDNJS: all the Internet's best Javascript libraries, now in a single, fast repo powered by CloudFlare! http://blog.cloudflare.com/cdnjs-community-moderated-javascript-librarie" (Tweet) – via Twitter.
cite-note-techcrunch-1717. citerefperez2019Perez, Sarah (June 24, 2019). "Cloudflare issues affecting numerous sites on Monday AM [Update: fixed]". TechCrunch. Retrieved September 3, 2020.
cite-note-hn-cdnjs-activity-1818. "Lack of cdnjs activity". Hacker News. November 1, 2019. Retrieved September 3, 2020.
cite-note-gh-cdnjs-activity-1919. "Lack of cdnjs activity". GitHub. October 21, 2019. Retrieved September 3, 2020.
cite-note-cf-art-3-2020. "An Update on CDNJS". The Cloudflare Blog. December 19, 2019. Retrieved September 3, 2020.
cite-note-oc-cdnjs-activity-2121. "cdnjs". Open Collective. Archived from the original on December 24, 2019. Retrieved September 3, 2020.
cite-note-repo-packages-2222. "cdnjs/packages: 📦 Package configurations - The #1 free and open source CDN built to make life easier for developers". GitHub. Retrieved 13 May 2021.
cite-note-do-os-2323. "Open Source at DigitalOcean". Retrieved 8 July 2019.
cite-note-collectiveray-2424. "15+ Free CDN WordPress Services to Boost Your Site Speed (2019) - CollectiveRay". Retrieved 18 April 2019.
cite-note-about-2525. "About Us - cdnjs - The #1 free and open source CDN built to make life easier for developers". Retrieved 13 May 2021.
cite-note-programmableweb-2626. "cdnjs API | ProgrammableWeb". Retrieved 18 April 2019.
cite-note-api-2727. "API - cdnjs.com - The best FOSS CDN for web related libraries to speed up your websites!". Retrieved 17 April 2019.
cite-note-cf-art-2-2828. "CDNJS: The Fastest Javascript Repo on the Web". Cloudflare. 12 December 2012. Retrieved 18 April 2019.
cite-note-2929. "HSTS Preload List Submission". Retrieved 17 April 2019.

External links

• Official website
• Github Organization